package com.zxy.ziems.server.energy.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class EnergyEfficiencyLibraryDTO {
    /**
     * ID
     */
    @NotBlank(message = "ID不可为空", groups = {Modify.class, Delete.class})
    private String id;
    /**
     * 属性ID
     */
    @NotBlank(message = "指标名称不可为空", groups = {Add.class})
    private String dataTypeId;

    /**
     * 单位ID
     */
    @NotBlank(message = "指标单位不可为空", groups = {Add.class})
    private String dataUnitId;

    /**
     * 描述
     */
//    @NotBlank(message = "描述不可为空", groups = {Add.class})
    private String description;

    /**
     * 时间维度：0-月；1-年
     */
    @NotNull(message = "时间维度不可为空", groups = {Add.class})
    private Integer timeDimension;

    public interface Add {
    }

    public interface Modify {
    }

    public interface Delete {
    }
}
